package cn.kgc.springboot04.service;

import cn.kgc.springboot04.entity.Student;
import cn.kgc.springboot04.mapper.StudentMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: mosin
 * @version: v1.0  2022/5/19
 */
@Service
public class StudentServiceImpl implements  StudentService{
    @Autowired
    private StudentMapper studentMapper;

    public Student selectById(Integer id){

        Student student = studentMapper.selectById(id);
        return  student;
    }

    public Integer deletetById(Integer id){

        int i = studentMapper.deleteById(id);
        return  i;
    }

}
